package com.yfqy.admin.service.impl;

import org.springframework.stereotype.Service;
import jakarta.annotation.Resource;
import com.yfqy.admin.domain.mapper.ProductAttributeValueMapper;
import com.yfqy.admin.domain.entity.ProductAttributeValue;
import com.yfqy.admin.service.ProductAttributeValueService;

@Service
public class ProductAttributeValueServiceImpl implements ProductAttributeValueService {

    @Resource
    private ProductAttributeValueMapper productAttributeValueMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return productAttributeValueMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ProductAttributeValue record) {
        return productAttributeValueMapper.insert(record);
    }

    @Override
    public int insertSelective(ProductAttributeValue record) {
        return productAttributeValueMapper.insertSelective(record);
    }

    @Override
    public ProductAttributeValue selectByPrimaryKey(Long id) {
        return productAttributeValueMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(ProductAttributeValue record) {
        return productAttributeValueMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ProductAttributeValue record) {
        return productAttributeValueMapper.updateByPrimaryKey(record);
    }

}
